
from aioredis import Redis
from sqlalchemy.ext.asyncio import AsyncSession

async def unified_return(session: AsyncSession, redis: Redis = None, **kwargs):
    await session.close()

    if redis:
        await redis.close()

    return kwargs










































































































































































